.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
  }
  
  .imgs {
    position: relative;
    width: 100%;
    height: 400px; /* 调整轮播图容器的高度 */
    overflow: hidden;
  }
  
  .imgs div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  
  .imgs div.active {
    opacity: 1;
  }
  
  .imgs .img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 调整图片填充方式 */
  }
  
  .titles {
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }
  
  button {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
  }
  
  button.active {
    background-color: rgba(0, 0, 0, 0.5); /* 调整激活按钮的背景颜色 */
  }
  
  .title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
  }
  
  .title2 {
    font-size: 14px;
    color: #666;
  }